<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport"
          content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="keywords" content=""/>
<meta name="description" content="">
<meta name="author" content=""/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>培训中心</title>
<link rel="stylesheet" type="text/css" href="/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="/assets/css/LQC.css">
</head>
<script type="text/javascript" src="/assets/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
	function courseclick(){
		var courseid = $("#courseId").val();
		var url = "/learn/enroll";
		$.post(
			url,
			{courseId:courseid},
			function(data){
				if(data == 0){
					alert("您尚未登录，无法报名");
				}else{
					if(data == 2){
						alert("您已报名该课程");
					}else{
						alert("报名成功");
					}
				}
			}
		);
		
	}
	
</script>
<body>
<header class="clearfix" id="px_header">
 <div class="px_Qhc01">
 <div id="px_Qjh"><a href="/learn"><img src="/assets/images/nav_back@3x.png"></a></div>
  培训课程
 </div>
 <div class="px_Qhc02">
 <img src="${course.imagePath }">
 </div>
 <div class="px_Qhc03">
 <span id="px_Qs1">${course.tittle }</span>
 </div>
</header>
<article id="px_article">
 <div class="px_Qac01">
  <span>时间：${course.startTime }</span><br>
  <span>地点：${course.address }</span><br>
		${course.detailContent }
 </div>
</article>
<footer id="px_footer">
	<input id="courseId" type="hidden" value="${course.id }">
  <div id="px_Qbaoming" onclick="courseclick()">我要报名</div>
</footer>
</body>
</html>
